package com.gmscosmo.request;

/**
 * @author stephen.qiu
 */
public class ConfigureBody extends JanusRequestBody {
    private Boolean audio;//是否发送音频
    private Boolean video;//是否发送视频
    private Integer pin;//密码
    private Integer substream;//substream（0-2）：数字越大分辨率越高
    private Integer temporal;//temporal（0-2）：数字越大帧率越高
    private Integer spatial_layer;// <spatial layer to receive (0-1), in case VP9-SVC is enabled; optional>,
    private Integer temporal_layer;//<temporal layers to receive (0-2), in case VP9-SVC is enabled; optional>
    private Integer bitrate;//最大码率,不设置着为无上限
    private Boolean restart;//重新协商offer
    private Boolean keyframe;// <true|false, whether we should send this publisher a keyframe request>
    private Boolean record;// <true|false, whether this publisher should be recorded or not; optional>,
    private String filename;// <if recording, the base path/file to use for the recording files; optional>",
    private String display;//<new display name to use in the room; optional>",
    private String audio_active_packets;//<new audio_active_packets to overwrite in the room one; optional>",
    private String audio_level_average;//<new audio_level_average to overwrite the room one; optional>",
    private Integer mid;//<mid of the m-line to refer to for this configure request; optional>,
    private Boolean send;//<true|false, depending on whether the media addressed by the above mid should be relayed or not; optional>,

    public ConfigureBody() {
        super("configure");
    }

    public Boolean getAudio() {
        return audio;
    }

    public void setAudio(Boolean audio) {
        this.audio = audio;
    }

    public Boolean getVideo() {
        return video;
    }

    public void setVideo(Boolean video) {
        this.video = video;
    }

    public Integer getPin() {
        return pin;
    }

    public void setPin(Integer pin) {
        this.pin = pin;
    }

    public Integer getSubstream() {
        return substream;
    }

    public void setSubstream(Integer substream) {
        this.substream = substream;
    }

    public Integer getTemporal() {
        return temporal;
    }

    public void setTemporal(Integer temporal) {
        this.temporal = temporal;
    }

    public Integer getSpatial_layer() {
        return spatial_layer;
    }

    public void setSpatial_layer(Integer spatial_layer) {
        this.spatial_layer = spatial_layer;
    }

    public Integer getTemporal_layer() {
        return temporal_layer;
    }

    public void setTemporal_layer(Integer temporal_layer) {
        this.temporal_layer = temporal_layer;
    }

    public Integer getBitrate() {
        return bitrate;
    }

    public void setBitrate(Integer bitrate) {
        this.bitrate = bitrate;
    }

    public Boolean getRestart() {
        return restart;
    }

    public void setRestart(Boolean restart) {
        this.restart = restart;
    }

    public Boolean getKeyframe() {
        return keyframe;
    }

    public void setKeyframe(Boolean keyframe) {
        this.keyframe = keyframe;
    }

    public Boolean getRecord() {
        return record;
    }

    public void setRecord(Boolean record) {
        this.record = record;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }

    public String getAudio_active_packets() {
        return audio_active_packets;
    }

    public void setAudio_active_packets(String audio_active_packets) {
        this.audio_active_packets = audio_active_packets;
    }

    public String getAudio_level_average() {
        return audio_level_average;
    }

    public void setAudio_level_average(String audio_level_average) {
        this.audio_level_average = audio_level_average;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Boolean getSend() {
        return send;
    }

    public void setSend(Boolean send) {
        this.send = send;
    }
}
